package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.HouseSellreMapper;
import com.ruoyi.system.domain.HouseSellre;
import com.ruoyi.system.service.IHouseSellreService;
import com.ruoyi.common.core.text.Convert;

/**
 * 中介人员Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-04-26
 */
@Service
public class HouseSellreServiceImpl implements IHouseSellreService 
{
    @Autowired
    private HouseSellreMapper houseSellreMapper;

    /**
     * 查询中介人员
     * 
     * @param sellerId 中介人员主键
     * @return 中介人员
     */
    @Override
    public HouseSellre selectHouseSellreBySellerId(Long sellerId)
    {
        return houseSellreMapper.selectHouseSellreBySellerId(sellerId);
    }

    /**
     * 查询中介人员列表
     * 
     * @param houseSellre 中介人员
     * @return 中介人员
     */
    @Override
    public List<HouseSellre> selectHouseSellreList(HouseSellre houseSellre)
    {
        return houseSellreMapper.selectHouseSellreList(houseSellre);
    }

    /**
     * 新增中介人员
     * 
     * @param houseSellre 中介人员
     * @return 结果
     */
    @Override
    public int insertHouseSellre(HouseSellre houseSellre)
    {
        return houseSellreMapper.insertHouseSellre(houseSellre);
    }

    /**
     * 修改中介人员
     * 
     * @param houseSellre 中介人员
     * @return 结果
     */
    @Override
    public int updateHouseSellre(HouseSellre houseSellre)
    {
        return houseSellreMapper.updateHouseSellre(houseSellre);
    }

    /**
     * 批量删除中介人员
     * 
     * @param sellerIds 需要删除的中介人员主键
     * @return 结果
     */
    @Override
    public int deleteHouseSellreBySellerIds(String sellerIds)
    {
        return houseSellreMapper.deleteHouseSellreBySellerIds(Convert.toStrArray(sellerIds));
    }

    /**
     * 删除中介人员信息
     * 
     * @param sellerId 中介人员主键
     * @return 结果
     */
    @Override
    public int deleteHouseSellreBySellerId(Long sellerId)
    {
        return houseSellreMapper.deleteHouseSellreBySellerId(sellerId);
    }
}
